﻿using System;
using System.Threading;
using System.Windows.Forms;
using PlanTasks.Tool;

namespace PlanTasks.Tools
{
    internal static class Program
    {
        /// <summary>
        ///     应用程序的主入口点。
        /// </summary>
        [STAThread]
        private static void Main()
        {
            bool createNew;

            using (var mutex = new Mutex(true, Application.ProductName, out createNew))
            {
                if (createNew)
                {
                    Application.EnableVisualStyles();
                    Application.SetCompatibleTextRenderingDefault(false);
                    Application.Run(new PlanTaskListView());
                }
            }
        }
    }
}